{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "c16165e8-7684-422c-9080-3fa93ce34722",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "fatal: destination path 'introduction-to-deep-learning' already exists and is not an empty directory.\n"
     ]
    }
   ],
   "source": [
    "!git clone https://gitee.com/slow-wind-and-waves-rise/introduction-to-deep-learning.git"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "b4e5bb19-251c-4865-86c8-d346d8d6f5f2",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Initialized empty Git repository in D:/Learn/Jupyter/娣卞害瀛︿範鍏ラ棬/.git/\n"
     ]
    }
   ],
   "source": [
    "!git init\n",
    "!git config --global user.name '缓风浪起' \n",
    "!git config --global user.email '1416397544@qq.com'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "2343b467-4f7c-485a-879f-62ccef633e39",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Initialized empty Git repository in D:/Learn/Jupyter/娣卞害瀛︿範鍏ラ棬/.git/\n"
     ]
    }
   ],
   "source": [
    "!git init"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "73a59601-3c3e-49da-a07b-2b539a13828c",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "warning: in the working copy of '.ipynb_checkpoints/1绗�涓�绔�-checkpoint.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of '.ipynb_checkpoints/2绗�浜岀珷-checkpoint.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of '.ipynb_checkpoints/3绗�涓夌珷-checkpoint.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of '.ipynb_checkpoints/gitee-checkpoint.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of '1绗�涓�绔�.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of '2绗�浜岀珷.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of '3绗�涓夌珷.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'LICENSE.md', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch01/hungry.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch01/img_show.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch01/man.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch01/simple_graph.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch01/sin_cos_graph.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch01/sin_graph.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch02/and_gate.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch02/nand_gate.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch02/or_gate.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch02/xor_gate.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/mnist_show.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/neuralnet_mnist.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/neuralnet_mnist_batch.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/relu.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/sig_step_compare.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/sigmoid.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch03/step_function.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch04/gradient_1d.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch04/gradient_2d.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch04/gradient_method.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch04/gradient_simplenet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch04/train_neuralnet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch04/two_layer_net.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch05/buy_apple.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch05/buy_apple_orange.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch05/gradient_check.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch05/layer_naive.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch05/train_neuralnet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch05/two_layer_net.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/batch_norm_gradient_check.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/batch_norm_test.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/hyperparameter_optimization.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/optimizer_compare_mnist.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/optimizer_compare_naive.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/overfit_dropout.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/overfit_weight_decay.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/weight_init_activation_histogram.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch06/weight_init_compare.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch07/apply_filter.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch07/gradient_check.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch07/simple_convnet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch07/train_convnet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch07/visualize_filter.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch08/deep_convnet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch08/half_float_network.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch08/misclassified_mnist.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'ch08/train_deepnet.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/functions.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/gradient.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/layers.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/multi_layer_net.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/multi_layer_net_extend.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/optimizer.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/trainer.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'common/util.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'dataset/mnist.py', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: in the working copy of 'gitee.ipynb', LF will be replaced by CRLF the next time Git touches it\n",
      "warning: adding embedded git repository: introduction-to-deep-learning\n",
      "hint: You've added another git repository inside your current repository.\n",
      "hint: Clones of the outer repository will not contain the contents of\n",
      "hint: the embedded repository and will not know how to obtain it.\n",
      "hint: If you meant to add a submodule, use:\n",
      "hint:\n",
      "hint: \tgit submodule add <url> introduction-to-deep-learning\n",
      "hint:\n",
      "hint: If you added this path by mistake, you can remove it from the\n",
      "hint: index with:\n",
      "hint:\n",
      "hint: \tgit rm --cached introduction-to-deep-learning\n",
      "hint:\n",
      "hint: See \"git help submodule\" for more information.\n",
      "hint: Disable this message with \"git config set advice.addEmbeddedRepo false\"\n"
     ]
    }
   ],
   "source": [
    "# 添加文件到暂存区\n",
    "!git add ."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "bf8dc6d1-5295-44e7-be4f-64e000ffbe58",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 提交更改\n",
    "!git commit -m \"Initial commit\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5b669cfa-643a-45a3-84f2-04e38f61d315",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 推送到 Gitee\n",
    "!git push -u origin master  # 如果默认分支是 main，替换为 main"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
